/**
 * 自动生成！请勿修改！
 */
import { command } from '../core/command';

class AirPurifier {
    constructor(opt = {}) {
        const { device, to, ...opts } = opt;

        this.device = device || {};
        this.opts = opts || {};
        this._to = to;
    }

    get categoryCode() {
        return '010030008';
    }

    get categoryName() {
        return '\u7a7a\u6c14\u51c0\u5316\u5668';
    }

    getAirQuality(params) {
        return command({
            method: 'getAirQuality',
            methodId: 'p3deousE',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getAnion(params) {
        return command({
            method: 'getAnion',
            methodId: 'phEqKkjW',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCO2(params) {
        return command({
            method: 'getCO2',
            methodId: 'UODeXylr',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getChildLock(params) {
        return command({
            method: 'getChildLock',
            methodId: 'pdN7zs6I',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCumulatedAbsorbedParticles(params) {
        return command({
            method: 'getCumulatedAbsorbedParticles',
            methodId: 'ptRS9Daz',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentHumidity(params) {
        return command({
            method: 'getCurrentHumidity',
            methodId: 'pNnZEPZm',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getCurrentTemperature(params) {
        return command({
            method: 'getCurrentTemperature',
            methodId: 'pqYhWwhP',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFaultAlarm(params) {
        return command({
            method: 'getFaultAlarm',
            methodId: 'pj7xBmx5',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFaultAlarmType(params) {
        return command({
            method: 'getFaultAlarmType',
            methodId: 'pXZu75Rl',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getFormaldehyde(params) {
        return command({
            method: 'getFormaldehyde',
            methodId: 'p0crOgPM',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPm10(params) {
        return command({
            method: 'getPm10',
            methodId: 'pz93i0yn',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPm2_5(params) {
        return command({
            method: 'getPm2_5',
            methodId: 'pkp1q4J9',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getPurgeMode(params) {
        return command({
            method: 'getPurgeMode',
            methodId: 'UmaS3OvC',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getRemainingLife(params) {
        return command({
            method: 'getRemainingLife',
            methodId: 'pBTQtlnK',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getSwitch(params) {
        return command({
            method: 'getSwitch',
            methodId: 'pWG01U0w',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getTVOC(params) {
        return command({
            method: 'getTVOC',
            methodId: 'UaMCfjfA',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWindMode(params) {
        return command({
            method: 'getWindMode',
            methodId: 'UnfcbCcU',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    getWindSpeed(params) {
        return command({
            method: 'getWindSpeed',
            methodId: 'pgh0mqkR',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setAnion(params) {
        return command({
            method: 'setAnion',
            methodId: 'ppAXIO0x',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setChildLock(params) {
        return command({
            method: 'setChildLock',
            methodId: 'pUPQ8jcb',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setFilterToDefault(params) {
        return command({
            method: 'setFilterToDefault',
            methodId: 'pZgRT3Sq',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setPurificationMode(params) {
        return command({
            method: 'setPurificationMode',
            methodId: 'pDrhFbIo',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setSwitch(params) {
        return command({
            method: 'setSwitch',
            methodId: 'pGoxHGCk',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWindMode(params) {
        return command({
            method: 'setWindMode',
            methodId: 'p1vFjxl1',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }

    setWindSpeed(params) {
        return command({
            method: 'setWindSpeed',
            methodId: 'peH3nfhG',
            params,
            to: this.to?.[this.i] || this.to,
        });
    }
}

export default AirPurifier;
